home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / blitzbasic / blitz-list200994.lha / blitz-list / 000091_blitz-list-request_Thu Jul 21 20:30:28 1994.msg < prev    next >
Internet Message Format  |  1994-09-20  |  1KB

  1. Received: from magician.dcs.qmw.ac.uk (magician.dcs.qmw.ac.uk [192.135.232.64]) by kantti.helsinki.fi (8.6.9/8.6.5) with SMTP id UAA21291 for <blitz-list@helsinki.fi>; Thu, 21 Jul 1994 20:30:19 +0300
  2. From: spi@dcs.qmw.ac.uk
  3. Received: from dcs.qmw.ac.uk by magician.dcs.qmw.ac.uk with SMTP (PP) 
  4.           id <10168-0@magician.dcs.qmw.ac.uk>; Thu, 21 Jul 1994 18:30:27 +0100
  5. Received: by it039.dcs.qmw.ac.uk (5.64/QMW-Minimal-1.14) id AA00894;
  6.           Thu, 21 Jul 94 18:29:00 BST
  7. Message-Id: <9407211729.AA00894@it039.dcs.qmw.ac.uk>
  8. Subject: Reading Text files
  9. To: blitz-list@helsinki.fi
  10. Date: Thu, 21 Jul 1994 18:28:57 +0000 (BST)
  11. X-Mailer: ELM [version 2.4 PL13]
  12. MIME-Version: 1.0
  13. Content-Type: text/plain; charset="us-ascii"
  14. Content-Transfer-Encoding: 7bit
  15. X-Status: 
  16. Status: O
  17.  
  18. Hi all,
  19.  
  20.     I am currently trying to write a uuencoded file splitter,
  21. but have a few questions that I need answers to.
  22.  
  23.     Is is possible to quickly determine how many lines of text there are in
  24. a file of ASCII text (with varying line lengths).
  25.  
  26.     Can you get blitz to read in lines of text (again of varying length),
  27. but all ending with a newline character, and if so how?
  28.  
  29.     At present, I only know how to read in text of fixed length, using:
  30.  
  31.  
  32. If Readfile (f$,0)
  33.     While not EOF(0)
  34.         a$=Inkey$(xx)
  35.     Wend
  36. CloseFile 0
  37. End If
  38.  
  39.     where xx is the length of the line.
  40.  
  41.     Any help would be much appreciated!
  42.  
  43. Steven Innell
  44. Email: spi@dcs.qmw.ac.uk
  45.